package com.lej.dataservice.club.bean.overview

import android.os.Parcelable
import kotlinx.parcelize.Parcelize

/**
 * 二选一界面info
 * Created by Administrator on 2020-06-12
 */
data class PackInfo(
    /**0是照片 1是视频 */
    var type: Int,
    /** 0是二选一 1是h5 2是battle */
    var cate: Int,
    var battle_id: String?,
    //二选一
    var left: PackListInfo?,
    var right: PackListInfo?,
    //h5
    var title: String?,
    var img: String?,
    var href: String?
)

@Parcelize
data class PackListInfo(
    var uid: String,
    var college: String,
    /**0图片 1视频*/
    var type: Int,
    var nick: String?,
    var graduate: String,
    var list: List<Photolist>,
    var selectType: Int//选中的状态
) : Parcelable

@Parcelize
data class Photolist(
    var photoid: String,
    var photourl: String,
    var videourl: String,
    var photodesc: String,
    var width:Int,
    var height:Int,
    /**0图片 1视频*/
    var type: Int,
    var face_rect: FacePoint
) : Parcelable {
    fun realUrl() = photourl
}

@Parcelize
data class FacePoint(
    val point_top: Float,
    val point_left: Float,
    val point_width: Float
): Parcelable